package com.example.controller;

import com.example.domain.ResultData;
import com.example.service.MessageService;
import com.example.vo.MessageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhouxl
 * @DATE 2021/2/3
 * @descriptoin
 */
@Controller
@RequestMapping("/api/message")
public class MessageController {

    @Autowired
    private MessageService messageService;

    /**
     * 查询好友未读信息
     *
     * @return
     */
    @RequestMapping("queryNoReadMessage")
    @ResponseBody
    public ResultData queryNoReadMessage(MessageVo messageVo) {
        return messageService.queryNoReadMessage(messageVo);
    }

}
